package com.huangcy.gulimall.auth.feign;

import com.huangcy.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @program: gulimall
 * @description:
 * @author: huangcy
 * @create: 2022-08-26 11:31
 **/
@FeignClient("gulimall-third-part")
public interface ThirdPartFeignService {

    @PostMapping("/sms/sendCode")
    public R sendCode(@RequestParam("phone") String phone, @RequestParam("code") String code);
}
